package com.carkeeper;


import com.carkeeper.util.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
@EnableEurekaClient
@MapperScan({"com.carkeeper.mapper"})
@EnableFeignClients({"com.carkeeper.feign"})
@EnableSwagger2
public class ManageApp {

    public static void main(String[] args) {
        SpringApplication.run(ManageApp.class);
    }


    @Bean
    public IdWorker idWorker() {
        return new IdWorker(2,2);
    }


    /*@Bean
    public TokenDecode tokenDecode() {
        return new TokenDecode();
    }*/
}
